package com.ljx.thread.thread02;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/10/31 14:38
 * @Version 1.0
 */
public class MyThreadTest {
	public static void main(String[] args) {
		MyThread myThread = new MyThread("李吉星");

		// 为该线程起名字myThread.setName("分支线程");

		myThread.start();


		// main方法是一个主线程
		for (int i = 0; i <20; i++) {
			System.out.println(Thread.currentThread().getName()+"线程");
		}
	}
}
